﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace BG.DAL.Model
{
    public class TicketStaff
    {
        [Key]
        public Guid kTicketStaffId { get; set; }

        [Display(Name = "Staff Name"), Required(ErrorMessage = "* This field is required"), StringLength(50)]
        public String sStaffName { get; set; }

        [Display(Name = "Address"), StringLength(100)]
        public String sAddress { get; set; }

        [Display(Name = "City"), StringLength(50)]
        public String sCity { get; set; }

        [Display(Name = "Zip"), RegularExpression("[0-9]+", ErrorMessage = "Zip not valid"), StringLength(10)]
        public String sZip { get; set; }

        [Display(Name = "Phone Number"), StringLength(15)]
        public String sPhone { get; set; }

        [Display(Name = "Moble Number"), StringLength(15)]
        public String sMobile { get; set; }

        [Display(Name = "Fax Number"), StringLength(15)]
        public String sFax { get; set; }

        [Display(Name = "Email"), RegularExpression("[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?", ErrorMessage = "Email Address not valid"), StringLength(50)]
        public String sEmailAddress { get; set; }

        [Display(Name = "Birth Day")]
        public DateTime? dtBirthDate { get; set; }

        public DateTime? dtDateAdd { get; set; }

        public DateTime? dtDateUpdate { get; set; }
    }
}
